package com.jk.controller;

import com.jk.dto.Tree;
import com.jk.interfaces.DepartmentServiceApi;
import com.jk.service.DepartmentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author yzf
 * @version 1.0
 * @ClassName DepartmentController
 * @program: office
 * @description: TODO
 * @date 2025/2/13 20:22
 */
@Slf4j
@RestController
public class DepartmentController implements DepartmentServiceApi {

    @Autowired
    private DepartmentService departmentService;
    @Override
    public List<Tree> findDepartmentTree(Tree tree) {
        return departmentService.findDepartmentTree(tree);
    }
}
